
* Download and use "meta analysis data.dta". Then run the following analyses:

gsort  -tb_effect studytype 

meta set tb_effect se if (study_category=="Observational" | study_category=="Experiment_individual") & Latbar_Afrobar2~=1, studylabel(study_label)
meta summarize if (studytype=="Observational" | study_category=="Experiment_individual") & study_label~="Kenya 2002 (Kramon 2013)" & Latbar_Afrobar2~=1, subgroup(data_type) 

* Figure 1 main text
meta forestplot if (studytype=="Observational" | study_category=="Experiment_individual") & study_label~="Kenya 2002 (Kramon 2013)" & Latbar_Afrobar2~=1, xline(0) scheme(s1mono) columnopts(_esci, format(%6.3f)) nullrefline(favorsleft("Abstention") favorsright("Turnout")) ciopts(color(black) lwidth(thick)) markeropts(color(black) mlwidth(thick) msize(medlarge) mfcolor(black)) omarkeropts(mcolor(black) mlwidth(thick) mfcolor(black)) nowmarkers noohetstats  plotregion(style(none))

* Figure 2 main text
meta set tb_effect se if study_category=="Experiment", studylabel(study_label)
meta summarize if study_category=="Experiment", subgroup(data_type) 
meta forestplot if study_category=="Experiment", xline(0) scheme(s1mono) columnopts(_esci, format(%6.3f))  nullrefline(favorsleft("Abstention") favorsright("Turnout")) ciopts(color(black) lwidth(thick)) markeropts(color(black) mlwidth(thick) msize(med) mfcolor(black)) omarkeropts(mcolor(black) mlwidth(thick) mfcolor(black)) nowmarkers noohetstats plotregion(style(none))

* Note 7 in main text
* w/o Carreras and Irepoglu
meta set tb_effect se if group_2==1, studylabel(study_label)
meta summarize if group_2==1, subgroup(data_type) 

* Note 8 in main text
* w/o Carreras and Irepoglu and Guardado and Wantchekon
meta set tb_effect se if group_6~=1, studylabel(study_label)
meta summarize if group_6~=1, subgroup(data_type) 

* Note 9 in main text
* w/o Hicken
meta set tb_effect se if group_1==1 & study_label~="Philippines 2013 Study 1 (Hicken et al. 2017)" & study_label~="Philippines 2013 Study 2 (Hicken et al. 2017)", studylabel(study_label)
meta summarize if group_1==1 & study_label~="Philippines 2013 Study 1 (Hicken et al. 2017)" & study_label~="Philippines 2013 Study 2 (Hicken et al. 2017)", subgroup(data_type) 

* Note 11 in main text
* w/o Banerjee
meta set tb_effect se if study_category=="Experiment" & study_label~="India 2007 (Banerjee et al. 2011) Study 1", studylabel(study_label)
meta summarize if study_category=="Experiment" & study_label~="India 2007 (Banerjee et al. 2011) Study 1", subgroup(data_type) 

* Supplementary Materials, Figure A1.
* Mexico only
meta set tb_effect se if group_5==1, studylabel(study_label)
meta summarize if group_5==1, subgroup(data_type) 
meta forestplot if group_5==1, xline(0) scheme(s1mono) columnopts(_esci, format(%6.3f))  nullrefline(favorsleft("Abstention") favorsright("Turnout"))
